package nodes.declarations;

import nodes.Type;
import nodes.exprnodes.ExprNode;
import visitors.Visitor;

public final class BasicDeclarationNode extends DeclarationNode
{
    public String id;
    public Type type;
    public ExprNode init;

    public BasicDeclarationNode(String id, Type type, ExprNode init)
    {
        this.id = id;
        this.type = type;
        this.init = init;
    }

    @Override
    public Object accept(Visitor v)
    {
        return v.visit(this);
    }
}